package com.bookstore.pojo;

import java.io.Serializable;
import java.util.Date;

public class Order implements Serializable {

    private String orderId;
    private Date createDate;
    private double totalPrince;
    private int status;
    private Integer userId;

    public Order() {
    }

    public Order(String orderId, Date createDate, double totalPrince, int status, Integer userId) {
        this.orderId = orderId;
        this.createDate = createDate;
        this.totalPrince = totalPrince;
        this.status = status;
        this.userId = userId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public double getTotalPrince() {
        return totalPrince;
    }

    public void setTotalPrince(double totalPrince) {
        this.totalPrince = totalPrince;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", createDate=" + createDate +
                ", totalPrince=" + totalPrince +
                ", status=" + status +
                ", userId=" + userId +
                '}';
    }
}